<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('海外入库')" />
	<th:block th:include="include :: businessCSS" />
	<style>

		.preservationBtn{padding: 10px;text-align: center;}
		.preservationBtn input{font-size: 16px;background-color: rgb(80, 138, 238);color: #fff;border: none;padding: 5px 30px;border-radius: 10px;cursor: pointer;}
		.layui-col-xs4 {min-width:225px !important;}
		.layui-form-label{width:160px !important; padding: 6px 0px !important; margin: 0px 0px 0px -10px !important;}
		.layui-input-block{margin-left: 150px !important;min-height: 42px !important;}
		.layui-form-item .layui-inline{margin-bottom: 0px !important;}
		.layui-input{height: 32px !important;}
	</style>
	
	<script th:src="@{/js/jquery/jquery.min.js}"></script>
	<script th:src="@{/js/jquery/jquery.cookie.js}"></script>
	<script th:src="@{/js/jquery/jquery.blockUI.min.js}"></script>
	<script th:src="@{/dhecp/js/dh-common.js?v=53}"></script>
	<script th:src="@{/dhecp/js/dh-ui.js?v=36}"></script>
	<script th:src="@{/dhecp/js/dh-motif-list.js?v=1}"></script>
	<script th:src="@{/js/jquery/jquery.validate.min.js}"></script>
	<script th:src="@{/js/jquery/jquery.validate.extend.js}"></script>
	
	<!-- businessJS -->
	<script th:src="@{/dhecp/js/dh-business.js?v=1}"></script>
	
	<!-- layui  -->
	<link rel="stylesheet" href="/plugins/layui/2.7.6/css/layui.css" media="all" />
	<script src="/plugins/layui/2.7.6/layui.js" charset="utf-8"></script>
</head>

<body class="no-skin">
<div class="main-container" id="main-container">
	<div class="main-content">
	<form class="layui-form head-form" id="id_form">
		<div class="topbtns">
			<div class="tpBtn">
				<ul class="layui-nav">
					<li class="layui-nav-item">
						<a href="javascript:;" class="layui-btn layui-btn-sm tp-save" lay-submit lay-filter="btn-save" id="btn-add"><span class="dhicon dh-zu4133_2" style="margin-right: 3px;"></span>保存</a>
					</li>
				</ul>
			</div>
		</div>
	    <div class="north" style="background-color: #fff;">
			<div class="forminput" id="id_form">
			<div class="layui-form layui-card-header layuiadmin-card-header-auto">
				<div class="layui-form-item margin_t0"><div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>物流单号：</font></label>
	    		    <div class="layui-input-block">
	    		    	<input type="text" name="bid" id="bid" th:value="${entity.bid}" class="layui-input canntEdit" lay-verify="" autocomplete="off" onblur="" readonly="">
	    		    </div>
	    		</div>
	    		<div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>海外仓发货申请单号：</font></label>
	    		    <div class="layui-input-block">
		    		    <input type="text" name="bidRequest" id="bidRequest" th:value="${entity.bidRequest}" class="layui-input canntEdit" lay-verify="" autocomplete="off" onblur="" readonly="">
		    		</div>
	    		</div>
	    		<div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>海外仓装箱单号：</font></label>
	    		    <div class="layui-input-block">
	    		    	<input type="text" name="bidBox" id="bidBox" th:value="${entity.bidBox}" class="layui-input canntEdit" lay-verify="" autocomplete="off" onblur="" readonly="">
	    		    </div>
	    		</div>
	    		<div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>目的地仓库：</font></label>
	    		    <div class="layui-input-block">
	    		    	<input type="text" name="destHouseAddress" id="destHouseAddress" th:value="${entity.destHouseAddress}" class="layui-input canntEdit" lay-verify="" autocomplete="off" onblur="" readonly="">
	    		    </div>
	    		</div>
	    		<div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>目的地库区：</font></label>
	    		    <div class="layui-input-block">
	    		    	<input type="text" name="vKqTo" id="vKqTo" value="" class="layui-input canntEdit" lay-verify="" autocomplete="off" onblur="" readonly="">
	    		 	</div>
	    	    </div>
	    	    <div class="layui-inline margin_r0 layui-col-xs4">
	    		    <label class="layui-form-label"><font>目的地货位：</font></label>
	    		    <div class="layui-input-block">
	    		    	<input type="text" class="layui-input buttontext" name="vHwTo" id="vHwTo" value="" autocomplete="off" readonly="" onblur=""><i class="layui-icon layui-icon-more getMore" onclick="getMore('vHwTo',null,'目的地货位','tcc_goodsallocation',false,false)" gettype="vHwTo"></i>
	    		    </div>
	    		</div>
			</div>
    	</div>
    </form>
	</div>
</div>

<script th:inline="javascript">
	/*<![CDATA[*/
	var prefix = "/storage/deliveryLogistics";
	var	k_fields=[];
	var fields = [[${fields}]];
	var fieldsList = [[${fieldsList}]];
	var fieldsHiddenList = [[${fieldsHiddenList}]];
	var gridColumns= [[${gridColumns}]];
	var all_fields= fieldsList;
	var $,layer,form,table;
    layui.use(['laydate','form','layer','jquery','util','element','upload'], function () {
        $ = layui.$,layer = layui.layer,form = layui.form,laydate = layui.laydate,util = layui.util,element=layui.element,upload = layui.upload;
		
		form.on('submit(btn-save)', function(data){
		   $.post("/storage/deliveryLogisticsRK/stockIn", data.field, function(res){
				 layer.msg(res.msg);
				 if(res.code==0){
					setTimeout(function(){
						parent.layer.close(parent.layer.getFrameIndex(window.name));
                        parent.table.reload('dhtable4', {page: {curr: 1}, where: window.parent.getWherestr()});
					},500)
				 }
	       });
           return false;
       });


		$('.t_date').each(function(){
            var datetype=$(this).attr('datetype')
            laydate.render({
				elem:this
                ,type: datetype=='t_date'?'date':datetype=='t_datetime'?'datetime':datetype=='t_year'?'year':'month'
			})
		})

    });

	/*]]>*/
</script>


<script>
</script>

</body>
</html>